onAttachFragment
Deprecated
The responsibility for listening for fragments being attached has been moved to FragmentManager. You can add a listener to this Activity's FragmentManager by calling addFragmentOnAttachListener in your constructor to get callbacks when a fragment is attached directly to the activity's FragmentManager.
Called when a fragment is attached to the activity.
This is called after the attached fragment's onAttach
and before the attached fragment's onCreate
if the fragment has not yet had a previous call to onCreate
.